
#include"protocol.h"

#define CurrentClient    ReceptionClient


struct FoodList{
    ushort FoodNum;//编号
    ushort FoodSum;//数量
    char Remark[RemarkSize];//备注
    struct FoodList *next;
    struct FoodList *pre;
};


class WaiterClient{
    public:
	WaiterClient();
	~WaiterClient();

	void ConnetServer();

	void SendMessage();

	void ReceiveMessage();

	void MainMenu();

	void OrderTable();

	void OrderFood();

	void ChangeFood();

	void DeelCallWaiter();

	void SendOrder();

	void CookStatus();

	void GetAllTable();

	void Account();

	void ShowAllFood();

	void ShowOrderList();

	void ShowResultTable();

	void ShowChangeList();

	void Warming();

	void ShowAllTable();
   private:
	int socket_fd;
	sockaddr_in ServerSin;
	ushort ServeringStatus;//服务状态0未服务，1正在服务
	MessageHeader Msg;
	ushort CurrentTable;
	map<ushort,string> ResultTable;//桌号-称呼
	map<ushort,map<ushort,string>> AllFood;//菜编号-价格-备注
	map<ushort,map<string,ushort>> AllTable;//桌号-桌名-状态
	FoodList *OrderList;
	FoodList *ChangeList;
};
